package springCloud.service;

import com.luoqiu.entities.Payment;
import org.springframework.stereotype.Service;
import springCloud.mapper.PaymentMapper;

import javax.annotation.Resource;

/**
 * @author 洛秋y
 * @date 2020/11/9 13:18
 */
@Service
public class PaymentService {
    @Resource
    private PaymentMapper paymentMapper;

    public Payment get() {

        return paymentMapper.selectByPrimaryKey(1);
    }

    public void add(Payment payment) {
        paymentMapper.insertSelective(payment);
    }
}
